DEF_PROJECT=../../..
include $(DEF_PROJECT)/scripts/main.mk
name=kbd
version=1.15
prefix=/usr
destdir=$(DIR_SYSROOT)
extdeps=eglibc-tools gcc-tools binutils-tools linux-header-tools

DL_SERV=http
DL_HOST=ftp.altlinux.org
DL_PATH=pub/people/legion/$(name)
DL_SUFFIX=tar.gz

cflags+=--host=$(CC_TARGET)
cflags+=--build=$(CC_HOST)
cflags+=--cache-file=$(DEF_CACHE)

pre-build:
	echo ac_cv_func_setpgrp_void=yes >$(source)/$(DEF_CACHE)
	echo ac_cv_func_malloc_0_nonnull=yes >>$(source)/$(DEF_CACHE)
	echo ac_cv_func_realloc_0_nonnull=yes >>$(source)/$(DEF_CACHE)
	cd $<;$(cdefs) ./configure $(cflags)
